<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.jsp.bean.UserBean" %>
<%@page import="java.util.List"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>分页查询用户信息</title>
    <style type="text/css">  
    td{font-size: 12px;}  
    h2{margin: 0px}  
    </style>  
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <center><h1>欢迎进入公务用车管理系统</h1>
  
  <body background="images/picture_1.png">
  <table align="center" width="450" border="1" height="180" bordercolor="white" bgcolor="Cyan" cellpadding="1" cellspacing="1">  
    <tr bgcolor="white">  
        <td align="center" colspan="8"> 
    <h2>所有用户 信息</h2>
    </td>
    <tr>
    <tr align="center" bgcolor="#e1ffc1" >
    <td><b>ID</b></td>
    <td><b>用户名</b></td>
    <td><b>密码</b></td>
    <td><b>姓名</b></td>
    <td><b>号码</b></td>
    <td><b>地址</b></td>
    <td><b>身份证</b></td>
    <td><b>职务</b></td>
    </tr>
    </tr>
    <%
    List<UserBean> list = (List<UserBean>)request.getAttribute("list");  
        for(UserBean p : list){  
     %>
     <tr align="center">
     <td><%=p.getId() %></td>
     <td><%=p.getName() %></td>
     <td><%=p.getPassword() %></td>
     <td><%=p.getName1() %></td>
     <td><%=p.getNumber() %></td>
     <td><%=p.getAddress() %></td>
     <td><%=p.getIdcard() %></td>
     <td><%=p.getJob() %></td>
     </tr>
     <%
     }
      %>
      <tr>
      <td align="center"colspan="8"bgcolor="Cyan">
      <%=request.getAttribute("bar") %>
      </td>
      </tr>
      </table>
      <br><br><br>
      <div>
          <center><a href="adminmain.jsp"><input name="commit" type="submit" id="back" value="返回"></a>
      </div>
  </body>
</html>
